<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        /*let retCode = 1003;
                                        if (retCode == 0) {
                                            alert('接口联调成功');
                                        } else if (retCode == 101) {
                                            alert('活动不存在');
                                        } else if (retCode == 103) {
                                            alert('活动未开始');
                                        } else if (retCode == 104) {
                                            alert('活动已结束');
                                        } else if (retCode == 1001) {
                                            alert('参数错误');
                                        } else if (retCode == 1002) {
                                            alert('接口频率限制');
                                        } else if (retCode == 1003) {
                                            alert('未登录');
                                        } else if (retCode == 1004) {
                                            alert('(风控用户)提示 活动太火爆啦~千军万马都在挤，请销后再试');
                                        } else {
                                            alert('系统君失联了，请销后再试');
                                        }*/
        /*let retCode = 1003;
        handleRetCode(retCode);

        function handleRetCode(retCode) {
            if (retCode == 0) {
                alert('接口联调成功');
                return;
            }
            if (retCode == 101) {
                alert('活动不存在');
                return;
            }
            if (retCode == 103) {
                alert('活动未开始');
                return;
            }
            if (retCode == 104) {
                alert('活动已结束');
                return;
            }
            if (retCode == 1001) {
                alert('参数错误');
                return;
            }
            if (retCode == 1002) {
                alert('接口频率限制');
                return;
            }
            if (retCode == 1003) {
                alert('未登录');
                return;
            }
            if (retCode == 1004) {
                alert('(风控用户)提示 活动太火爆啦~千军万马都在挤，请销后再试');
                return;
            }
            alert('系统君失联了，请稍后再试');
            return;
        }*/
        /*let retCode = 1003;
        switch (retCode) {
            case 0:
                alert('接口联调成功');
                break;
            case 101:
                alert('活动不存在');
                break;
            case 103:
                alert('活动未开始');
                break;
            case 104:
                alert('活动已结束');
                break;
            case 1001:
                alert('参数错误');
                break;
            case 1002:
                alert('接口频率限制');
                break;
            case 1003:
                alert('未登录');
                break;
            case 1004:
                alert('(风控用户)提示 活动太火爆啦~千军万马都在挤，请稍后再试');
                break;
            default:
                alert('系统君失联了，请稍后再试');
                break;
        }*/
        let day = 2;

        switch (day) {
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                console.log('work');
                break; // 在这里放一个 break

            case 6:
            case 7:
                console.log('relax');
                break; // 在这里放一个 break

            default:
                break;
        }
    </script>
</body>

</html>